package h_eekwan.basic;

import java.util.Scanner;

public class JDBCbookMain {
	private static final String menu = ">> 1.생성   0. 종료";
	private static final String exitmsg = "종료되었습니다.";
	
	
	public static void main(String[] args) {
		JDBCbookdb book = new JDBCbookdb();
		
		Scanner sc = new Scanner(System.in);
		while(true){
			System.out.println(menu);
			switch( sc.nextInt() ) {
			case 0 : sc.close();
					System.exit(0);
					System.out.println(exitmsg);
					break;
			case 1 : book.addBook();
					break;
					
			
			}
		}
		
		
	}
}
